package cn.xuxiu.bacsic.query;

import lombok.Data;

/**
 * 抽取公共的查询信息：分页的信息
 */
@Data
public class BaseQuery {
    private Integer currentPage = 1;
    private Integer pageSize = 5;
    private String keyword;
    public Integer getBegin(){
        return (this.currentPage - 1) * this.pageSize;
    }
}
